define(['underscore','backbone','jquery','jqgrid','handlebars'],function(_,Backbone,$){
	var Table=Backbone.View.extend({
		initialize:function(){			
		},
		render:function(){
			 $(this.el).jqGrid({
				    url:this.options.url,
				    datatype: 'json',
				    mtype: 'GET',
				    colNames:this.options.colNames,
				    colModel :this.options.colModel,
				    recordtext:this.options.recordText,
				    pager: this.options.pager,
				    rowNum:this.options.rowNum,
				    rowList:this.options.rowList,
				    sortname: this.options.sortname,
				    sortorder: this.options.sortorder,
				    viewrecords: true,
				    gridview: true,
				    caption: this.options.caption,
					jsonReader:this.options.jsonReader
			  }); 
		}
	});
	return Table;
});
